<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% if gbzx %}编辑{% else %}新增{% endif %} Gbzx</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container my-4">
    <h1 class="text-center">{% if gbzx %}编辑{% else %}新增{% endif %} Gbzx</h1>

    <form method="post">
        {% csrf_token %}
        <div class="mb-3">
            <label for="ybm" class="form-label">YBM</label>
            <input type="text" name="ybm" id="ybm" class="form-control"
                   value="{{ gbzx.ybm|default:'' }}" required>
        </div>
        <div class="mb-3">
            <label for="a2" class="form-label">A2</label>
            <input type="text" name="a2" id="a2" class="form-control"
                   value="{{ gbzx.a2|default:'' }}" required>
        </div>
        <div class="mb-3">
            <label for="a8" class="form-label">A8</label>
            <input type="text" name="a8" id="a8" class="form-control"
                   value="{{ gbzx.a8|default:'' }}">
        </div>
        <div class="mb-3">
            <label for="a29" class="form-label">A29</label>
            <input type="text" name="a29" id="a29" class="form-control"
                   value="{{ gbzx.a29|default:'' }}">
        </div>
        <div class="mb-3">
            <label for="a9" class="form-label">A9</label>
            <input type="text" name="a9" id="a9" class="form-control"
                   value="{{ gbzx.a9|default:'' }}">
        </div>
        <div class="mb-3">
            <label for="bwm" class="form-label">BWM</label>
            <input type="text" name="bwm" id="bwm" class="form-control"
                   value="{{ gbzx.bwm|default:'' }}">
        </div>
        <div class="mb-3">
            <label for="a61" class="form-label">A61</label>
            <input type="text" name="a61" id="a61" class="form-control"
                   value="{{ gbzx.a61|default:'' }}">
        </div>
        <button type="submit" class="btn btn-primary">{% if gbzx %}保存修改{% else %}新增{% endif %}</button>
        <a href="{% url 'gbzx_list' %}" class="btn btn-secondary">取消</a>
    </form>
</div>
</body>
</html>